home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-09-15 | 4.1 KB | 147 lines |
- # Description file for librle library.
-
- # DEST = LIB:rle.lib
- # RI = /include
- # CC = lc
- # OPT = -O
- # NOOPTCFLAGS = -m4 -v -f8 -ba -j104 -j85 -i$(RI) -i/lib
-
- # The SAS/C v.6 optimizer appears much more robust than the one in v.5.
- # Let's assume that it will optimize everything correctly.
- #DEST = LIB:rle.lib
- #RI = /include
- #CC = sc
- #OPT = OPTIMIZE OPTSCHED
- #NOOPTCFLAGS = CPU=68040 NOSTKCHK MATH=68882 IGNORE=104+85+154+100+161\
- #GST=INCLUDE:all.gst IDIR=/include IDIR=/lib $(OPT)
- #CFLAGS = $(NOOPTCFLAGS)
-
- DEST = GNU:LIB/librle.a
- RI = /include
- CC = gcc
- OPT =
- NOOPTCFLAGS = -m68020 -m68881 -O2 -I../include -c
- CFLAGS = $(NOOPTCFLAGS) $(OPT)
-
- .c.o:
- $(CC) $(CFLAGS) $>.c
-
- # If nothing else is specified, default is to build the library.
- default: buildlib
-
- # OPT_OBJS = sVsetlinebuf.o
- OPT_OBJS =
-
- OBJS = Runput.o buildmap.o cmd_name.o colorquant.o dither.o \
- float_to_exp.o inv_cmap.o rle_addhist.o rle_cp.o rle_getcom.o \
- rle_getraw.o rle_getrow.o rle_getskip.o rle_global.o \
- rle_open_f.o rle_putcom.o rle_putraw.o rle_putrow.o \
- rle_raw_alc.o rle_rawrow.o rle_row_alc.o scanargs.o \
- vaxshort.o \
- $(OPT_OBJS)
-
- # LIBNAME = rle.lib
- LIBNAME = librle.a
-
- # Just rebuild the object files.
- objs: $(OBJS)
-
- # Copy the library to the destination directory.
- # (Install a second copy on the debug subdirectory, on the theory that it
- # is more useful to have a non-debug version than nothing at all.)
- # Do nothing if $(DEST) is empty (or not defined)
- install: buildlib
- cp $(LIBNAME) $(DEST)
- touch install
-
- # Rebuild the library from all the .o files.
- buildlib: $(OBJS)
- touch $(LIBNAME)
- delete $(LIBNAME)
- # oml $(LIBNAME) @OFILES
- Execute makelib
- ranlib $(LIBNAME)
- touch buildlib
-
- # Clean up installed stuff and binaries
- pristine: clean
- delete $(DEST)
- delete $(LIBNAME)
- delete install
-
- # Get rid of everything which must be recompiled on a different computer.
- clean:
- delete \#?.o quiet
- delete $(LIBNAME)
- delete buildlib
-
- # Lint actions:
- #
- # lintall - run lint on all the source files
- # lint1 - run line on one source file
- # llib-lrle - build human-readable form of lint library
- # llib-lrle.ln - build machine readable form of lint library for
- # use in linting programs that use the library
- # linstall - install the lint library
- #
- lintall:
- lint $(DFLAGS) $(IFLAGS) $(CFILES)
-
- lint1:
- lint $(DFLAGS) $(IFLAGS) -u $(LINTF) llib-lrle.ln
-
- llib-lrle: $(CFILES)
- -gemacs -tnull -q -l$(AEM)/mk-llib.ml -emk-llib llib-lrle $(CFILES)
-
- lintlib llib-lrle.ln: llib-lrle
- /lib/cpp $(IFLAGS) -C -Dlint llib-lrle | > /usr/lib/lint/lint1 -uv > \
- llib-lrle.ln
- touch lintlib
-
- # Install the lint library.
- linstall: llib-lrle.ln
- cp llib-lrle.ln llib-lrle /usr/lib/lint
-
- # Make all objects depend on rle_config.h, even if they really don't.
- # This forces a recompile whenever a reconfiguration happens.
- # $(OBJS): $(RI)/rle_config.h
-
- # Dependencies on .h files:
- # DO NOT DELETE THIS LINE
-
- Runput.o: $(RI)/rle.h $(RI)/rle_code.h $(RI)/rle_put.h $(RI)/rle_config.h
- $(CC) $(NOOPTCFLAGS) $>.c
- buildmap.o: $(RI)/rle.h $(RI)/rle_config.h
- $(CC) $(CFLAGS) $>.c
- float_to_exp.o: $(RI)/rle.h $(RI)/rle_config.h
- $(CC) $(CFLAGS) $>.c
- rle_addhist.o: $(RI)/rle.h $(RI)/rle_config.h
- $(CC) $(NOOPTCFLAGS) $>.c
- rle_cp.o: $(RI)/rle.h $(RI)/rle_code.h $(RI)/rle_put.h $(RI)/rle_config.h
- $(CC) $(CFLAGS) $>.c
- rle_getcom.o: $(RI)/rle.h $(RI)/rle_config.h
- $(CC) $(CFLAGS) $>.c
- rle_getraw.o: $(RI)/rle.h $(RI)/rle_raw.h $(RI)/rle_config.h
- $(CC) $(CFLAGS) $>.c
- rle_getrow.o: $(RI)/rle.h $(RI)/rle_code.h $(RI)/rle_config.h
- $(CC) $(CFLAGS) $>.c
- rle_getskip.o: $(RI)/rle.h $(RI)/rle_code.h $(RI)/rle_config.h
- $(CC) $(CFLAGS) $>.c
- rle_global.o: $(RI)/rle.h $(RI)/rle_put.h $(RI)/rle_config.h
- $(CC) $(CFLAGS) $>.c
- rle_putcom.o: $(RI)/rle.h $(RI)/rle_config.h
- $(CC) $(CFLAGS) $>.c
- rle_putraw.o: $(RI)/rle.h $(RI)/rle_put.h $(RI)/rle_raw.h $(RI)/rle_config.h
- $(CC) $(CFLAGS) $>.c
- rle_putrow.o: $(RI)/rle.h $(RI)/rle_put.h $(RI)/rle_config.h
- $(CC) $(CFLAGS) $>.c
- rle_raw_alc.o: $(RI)/rle.h $(RI)/rle_raw.h $(RI)/rle_config.h
- $(CC) $(CFLAGS) $>.c
- rle_rawrow.o: $(RI)/rle.h $(RI)/rle_raw.h $(RI)/rle_config.h
- $(CC) $(CFLAGS) $>.c
- rle_row_alc.o: $(RI)/rle.h $(RI)/rle_config.h
- $(CC) $(CFLAGS) $>.c
-
- config-subdirs:
-
-